<style type="text/css">
    .uploadify-button {
        left: 0;
        width: 85px;
        height: 28px;
        background-repeat: no-repeat;
        border: none;
        padding: 0;
    }

    .uploadify:hover .uploadify-button {
        background-repeat: no-repeat;
        width: 85px;
        height: 28px;
    }

    .fileQueue {
        background-color: #F4F9FF;
        height: 55px;
        overflow: auto;
        width: 70%;
    }
</style>
<script type="text/javascript" src="${base}/scripts/page/qyfr_content.js"></script>
<form id="form_qyfr" action="${base}/organ/qyfr/qyfr" method="post">
    <input name="qyfr.id" type="hidden" value="${(qyfr.id)!''}"/>
    <table style="width:100%" class="tb tab-t">
        <col width="20%"/><col width="23%"/><col width="22.5%"/><col width="34.5%"/>
        <tr>
            <th style="color:#f45212;">企&nbsp;业&nbsp;全&nbsp;称：</th>
            <td><input name="qyfr.qyqc" type="text" class="easyui-validatebox input-text"
                       validType="remote['${base}/organ/qyfr/ajax_validate?qyfrId=${(qyfr.id)!}',{'validateField':'qyqc'},'企业全称不能重复！']"
                       required="true" value="${(qyfr.qyqc)!''}"/></td>
            <th style="color:#f45212;">企&nbsp;业&nbsp;简&nbsp;称：</th>
            <td><input name="qyfr.qyjc" type="text" class="easyui-validatebox input-text"
                       validType="remote['${base}/organ/qyfr/ajax_validate?qyfrId=${(qyfr.id)!}',{'validateField':'qyjc'},'企业简称不能重复！']"
                       required="true" value="${(qyfr.qyjc)!''}"/></td>
        </tr>
        <tr>
            <th style="color:#f45212;">开&nbsp;&nbsp;&nbsp;户&nbsp;&nbsp;&nbsp;行：</th>
            <td><input name="qyfr.khh" type="text" class="easyui-validatebox input-text"
                       validType="maxLength[20]" required="true" value="${(qyfr.khh)!''}"/></td>
            <th style="color:#f45212;">账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</th>
            <td><input name="qyfr.zh" type="text" class="easyui-validatebox input-text"
                       validType="maxLength[30]" required="true"value="${(qyfr.zh)!''}"/>
            </td>
        </tr>
        <tr>
            <th style="color:#f45212;">法定代理人：</th>
            <td><input name="qyfr.fddlr" type="text" class="easyui-validatebox input-text"
                       required="true" value="${(qyfr.fddlr)!''}"/></td>
            <th style="color:#f45212;">纳&nbsp;&nbsp;&nbsp;税&nbsp;&nbsp;&nbsp;号：</th>
            <td><input name="qyfr.nsh" type="text" class="easyui-validatebox input-text"
                       <#--validType="maxLength[15]"--> required="true" value="${(qyfr.nsh)!''}"/></td>
        </tr>
        <tr>
            <th>委托代理人：</th>
            <td><input name="qyfr.wtdlr" type="text" class="easyui-validatebox input-text"
                       validType="maxLength[10]" value="${(qyfr.wtdlr)!''}"/></td>
            <th style="color:#f45212;">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话：</th>
            <td><input name="qyfr.dh" type="text" class="easyui-validatebox input-text" required="true"
                       data-options="validType:['length[0,15]']" value="${(qyfr.dh)!''}"/></td>
        </tr>
        <tr>
            <th>办&nbsp;公&nbsp;地&nbsp;址：</th>
            <td><input name="qyfr.bgdz" type="text" class="input-text"
                       data-options="validType:['length[0,15]']" value="${(qyfr.bgdz)!''}"/></td>
            <th>传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真：</th>
            <td><input name="qyfr.cz"  type="text" class="input-text"
                       data-options="validType:['length[0,15]']" value="${(qyfr.cz)!''}"/></td>
        </tr>
        <tr>
            <th>邮&nbsp;政&nbsp;编&nbsp;码：</th>
            <td><input name="qyfr.yzbm" type="text" class="easyui-validatebox input-text"
                       validType="validType:['length[0,6]']" value="${(qyfr.yzbm)!''}"/></td>
            <th style="color:#f45212;">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址：</th>
            <td><input name="qyfr.address" type="text" class="easyui-validatebox input-text" required="true"
                       validType="maxLength[50]" value="${(qyfr.address)!''}"/></td>
        </tr>
        <tr>
            <th>纳税开户行：</th>
                <td>
                    <input name="qyfr.nskhh" type="text" class="easyui-validatebox input-text"
                           style="width: 455px" validType="maxLength[50]" value="${(qyfr.nskhh)!''}"/>
                </td>
        </tr>
        <tr>
            <th>类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型：</th>
            <td>
                <label><input name="qyfr.lx" type="radio" value="0" checked="checked"
                              style="vertical-align: middle;"/>外&nbsp;部</label> &nbsp;&nbsp;&nbsp;&nbsp;
                <label><input name="qyfr.lx" type="radio" value="1"
                              <#if (qyfr.lx)?? && qyfr.lx==1>checked</#if>
                              style="vertical-align: middle;"/>内&nbsp;部</label>
            </td>
        </tr>
        <tr>
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td colspan="3">
                <textarea style="width:455px;" rows="2" class="textarea" name="qyfr.bz">${(qyfr.bz)!}</textarea>
            </td>
        </tr>
    </table>
</form>
<div id="qyfr-fileQueue" class="fileQueue" style="float: left;margin-left:80px">
<#if (qyfr.fjList)??>
    <#list qyfr.fjList as fj>
        <div id="qyfr-files${fj.id}" class="uploadify-queue-item">
            <div class="cancel">
                <a href="javascript:void(0)" onclick="deleteQyfrFile('${fj.id}','qyfr-files${fj.id}')">X</a>
            </div>
            <span class="fileName">${(fj.ccmc)!}</span><span class="data"></span>
        </div>
        <input type="hidden" id="qyfr-file${fj.id}" name="qyfr.fjList.id" value="${(fj.id)!}"/>
    </#list>
</#if>
</div>
<div style="float: right;margin: 8px 15px 0 0;margin-right:40px;">
    <input type="file" name="file" id="qyfr-uploadify"/>
</div>
